
function getHtmls(pros)
{
	
var htmls ="";
htmls = htmls+'<table style="width: 599px; height: 320px" id="PromptSplitZone" cellspacing="0" cellpadding="0" border="1">';
htmls = htmls+'<tbody><tr><td><div style="overflow: hidden; width: 193px; height: 320px; display: block;">';
htmls = htmls+'<table style="background-color: #FFFFFF" width="100%"  height="320" border="0" cellspacing="0" cellpadding="0">';
htmls = htmls+'<tbody><tr><td valign="top">';
htmls = htmls+'<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr>';
htmls = htmls+'<td height="21" style="background-image: url(\'box/flexdock.png\')">';
htmls = htmls+'<span id="promptNameID" style="padding-left: 5px; color: #FFFFFF">请选择参数：</span>';
htmls = htmls+'</td> </tr> <tr> <td valign="top">';
htmls = htmls+'<div align="left" class="solidBorder" id="PromptList" style="border-width: 1px; padding: 0px; width: 194px; height: 297px; overflow: auto">';
htmls = htmls+'<div style="font-size: 12px;" id="treePrompts">';
htmls = htmls+'<ul id="treeD" class="ztree"></ul>';
htmls = htmls+'</div></div></td></tr></table></td></tr></tbody></table></div></td>';
htmls = htmls+'<td><div style="overflow: hidden; width: 6px; height: 320px; display: block;">';
htmls = htmls+'<div class="horizSplitZoneImg" style="overflow: hidden; margin-top: 145px;"></div>';
htmls = htmls+'</div></td><td><div style="overflow: hidden; width: 399px; height: 320px; display: block;">';
htmls = htmls+'<table id="promptRightZone" pos="196" style="background-color: #FFFFFF" width="100%" height="320" border="0" cellspacing="0" cellpadding="0">';
htmls = htmls+'<tbody><tr><td valign="top">';
htmls = htmls+'<table width="100%" border="0" cellspacing="0" cellpadding="0">';
htmls = htmls+'<tr><td height="21" style="background-image: url(\'box/flexdock.png\')">';
htmls = htmls+'<span id="promptAnswerTitle" style="padding-left: 5px; color: #FFFFFF; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; width: 0px; display: block;">232323&nbsp;</span>';
htmls = htmls+'</td></tr></table></td></tr> </tbody></table></div></td></tr> </tbody></table>';
return htmls;
}

function getPros(obj)
{
  var vhtml ="";
  //var pts;
  var arr = new Array();
  for (var i=0; i<obj.length; i++)
  {
	  pts = obj[i];
	  arr[i]=getNodes(pts,i);
  }
  $(document).ready(function(){
		$.fn.zTree.init($("#treeD"), setting, arr);
	});
}

var setting = {
	data: {
		simpleData: {
			enable: true
		}
	}
};

var zNodes =[
	{ id:1, pId:0, name:"父节点1 - 展开", open:true},
	{ id:11, pId:1, name:"父节点11 - 折叠"},
	{ id:111, pId:11, name:"叶子节点111"},
	{ id:112, pId:11, name:"叶子节点112"},
	{ id:113, pId:11, name:"叶子节点113"},
	{ id:114, pId:11, name:"叶子节点114"},
	{ id:12, pId:1, name:"父节点12 - 折叠"},
	{ id:121, pId:12, name:"叶子节点121"},
	{ id:122, pId:12, name:"叶子节点122"},
	{ id:123, pId:12, name:"叶子节点123"},
	{ id:124, pId:12, name:"叶子节点124"},
	{ id:13, pId:1, name:"父节点13 - 没有子节点", isParent:true},
	{ id:2, pId:0, name:"父节点2 - 折叠"},
	{ id:21, pId:2, name:"父节点21 - 展开", open:true},
	{ id:211, pId:21, name:"叶子节点211"},
	{ id:212, pId:21, name:"叶子节点212"},
	{ id:213, pId:21, name:"叶子节点213"},
	{ id:214, pId:21, name:"叶子节点214"},
	{ id:22, pId:2, name:"父节点22 - 折叠"},
	{ id:221, pId:22, name:"叶子节点221"},
	{ id:222, pId:22, name:"叶子节点222"},
	{ id:223, pId:22, name:"叶子节点223"},
	{ id:224, pId:22, name:"叶子节点224"},
	{ id:23, pId:2, name:"父节点23 - 折叠"},
	{ id:231, pId:23, name:"叶子节点231"},
	{ id:232, pId:23, name:"叶子节点232"},
	{ id:233, pId:23, name:"叶子节点233"},
	{ id:234, pId:23, name:"叶子节点234"},
	{ id:3, pId:0, name:"父节点3 - 没有子节点", isParent:true}
];

function gettheResponse(pt)
{
var response = new Object();
response.id = pt.id;
response.index = pt.groupIndex;
response.key = (pt.subKey)?pt.subKey:pt.key;
response.dataType = pt.dataType;
response.values = (pt.values!=null)?pt.values:new Array();
response.deps = getDepencyAnswers(pt);
response.dataproviderInfo = pt.dataproviderInfo;
return response;
}

function getNodes(pt,ints)
{
var response = new Object();
//response.id = pt.id;
//response.index = pt.groupIndex;
response.id = (pt.subKey)?pt.subKey:pt.key;
response.pId = 0;
response.name="条件"+response.id+":"+pt.id;
//response.values = (pt.values!=null)?pt.values:new Array();
//response.deps = getDepencyAnswers(pt);
//response.dataproviderInfo = pt.dataproviderInfo;
return response;
}
